package dev.loong.boot3.pojo;

import dev.loong.boot3.commons.SexEnum;
import lombok.Data;
import org.apache.ibatis.type.Alias;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.List;

@Data
@Alias("user")
@Document
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private Long id;
    @Field("user_name")
    private String userName;
    private String note;
    //private SexEnum sex;
    private String pwd;
    private int available;
    private List<Role> roles;
}
